project(AMD_AGS)

set(AMD_AGS_INCLUDE_DIR "${AMD_AGS_SOURCE_DIR}/inc" CACHE PATH "")
set(AMD_AGS_LIB_DIR "${AMD_AGS_SOURCE_DIR}/lib" CACHE PATH "")
mark_as_advanced(AMD_AGS_INCLUDE_DIR)
mark_as_advanced(AMD_AGS_LIB_DIR)

if (OGREDEPS_PLATFORM_X64)
	set( PLATFORM_SUFFIX x64 )
else()
	set( PLATFORM_SUFFIX x86 )
endif()

set( AMD_AGS_LIBS
	${AMD_AGS_LIB_DIR}/amd_ags_uwp_${PLATFORM_SUFFIX}.lib
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}.lib
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}_2015_MD.lib
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}_2015_MT.lib
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}_2017_MD.lib
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}_2017_MT.lib )

set( AMD_AGS_DLLS
	${AMD_AGS_LIB_DIR}/amd_ags_uwp_${PLATFORM_SUFFIX}.dll
	${AMD_AGS_LIB_DIR}/amd_ags_${PLATFORM_SUFFIX}.dll )

if (OGREDEPS_INSTALL_DEV)
	install(DIRECTORY ${AMD_AGS_INCLUDE_DIR}/ DESTINATION include)
	install(FILES ${AMD_AGS_LIBS} DESTINATION ${OGREDEPS_LIB_DIRECTORY}/${OGREDEPS_DEBUG_PATH})
	install(FILES ${AMD_AGS_LIBS} DESTINATION ${OGREDEPS_LIB_DIRECTORY}/${OGREDEPS_RELEASE_PATH})
	install(FILES ${AMD_AGS_DLLS} DESTINATION bin${OGREDEPS_DEBUG_PATH})
	install(FILES ${AMD_AGS_DLLS} DESTINATION bin${OGREDEPS_RELEASE_PATH})
endif ()
